]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
src/Makefile.am: two fixes to the gnome-shell wrapper handling
authorDan Winship <danw@gnome.org>
Mon, 4 Apr 2011 17:52:25 +0000 (13:52 -0400)
committerDan Winship <danw@gnome.org>
Mon, 11 Apr 2011 14:58:50 +0000 (10:58 -0400)
Add an uninstall-hook to undo the effect of install-exec-hook, and add
an $(AM_V_GEN) to the rule that copies either gnome-shell-real or
gnome-shell-jhbuild to gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=646730

src/Makefile.am

index eb211206c9be1a5126261d5d8771024052f9bf41..31ff58b8f9e802f36ab094a2ff36f071d6abe166 100644 (file)
@@ -29,9 +29,11 @@ endif
 
 noinst_DATA = gnome-shell
 gnome-shell: $(gnome_shell) Makefile
-       cp $< $@.tmp && mv $@.tmp $@
+       $(AM_V_GEN) cp $< $@.tmp && mv $@.tmp $@
 install-exec-hook:
        mv $(DESTDIR)$(bindir)/$(gnome_shell) $(DESTDIR)$(bindir)/gnome-shell
+uninstall-hook:
+       rm -f $(DESTDIR)$(bindir)/gnome-shell
 
 generated_script_substitutions = \
            -e "s|@bindir[@]|$(bindir)|" \